﻿/**
 * 
 */
package com.lynn.salary.entity;

/**
 * @author lynn
 * 员工权限中间表
 */
public class EmpPermission {
	private String empId;
	private String persId;

	/**
	 * 获取所有字段
	 * 
	 * @return
	 */
	public static String[] getFields() {

		return new String[] { "empId", "persId" };
	}

	/**
	 * 获取表名
	 * 
	 * @return
	 */
	public static String getTableName() {

		return "emppermission";
	}

	/**
	 * 获取主键名字
	 * 
	 * @return
	 */
	public static String getPkName() {

		return "empId";
	}

	public static Object[] getFk(String field) {
		if (field.equals("empId")) {
			return new Object[] { User_.class, "id" };
		} else if (field.equals("persId")) {
			return new Object[] { Permission.class, "id" };
		} else
			return null;
	}

	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public String getPersId() {
		return persId;
	}

	public void setPersId(String persId) {
		this.persId = persId;
	}

}
